import request from "@/utils/request";

// 查询列表
export const getDataList = function (data) {
  return request({
    url: "/zy-api/api/ecMaininfo/findList",
    method: "post",
    data,
  });
};

// 已绑定
export const getDataBind = function (ecNum) {
  return request({
    url: "/zy-api/api/ecMaininfo/getPoint",
    method: "post",
    data: {
      pageIndex: 1,
      pageSize: 999,
      ecNum,
    },
  });
};

// 所有测点
export const getPointList = function (data) {
  return request({
    url: "/zy-api/api/ecMaininfo/getPointList",
    method: "post",
    data,
  });
};

// 绑定或解绑
export const setBind = function (data) {
  return request({
    url: "/zy-api/api/ecMaininfo/bind",
    method: "post",
    data,
  });
};
